package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Setter
@Getter
public class Userinfo {
    private Integer id;

    private String realName;//真实姓名

    private Long idNumber;//身份证

    private Long phoneNumber;//手机号码

    private String email;//邮件

    private String address;//地址

    private Boolean state;//状态

    private String schoolName;//毕业所读的学校

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date applyTime;//申请时间

    private String remark;//备注信息

    private String emergencyContactName;//紧急联系人

    private String emergencyContactPhone;//紧急联系人号码

    //多对一
    private Grade grade;//班级

    //多对一
    private Employee teacher;//班主任

    //多对一
    private Employee auditor;//审核人

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date auditTime;//审核时间

    private Boolean auditState;//审核状态
}